home *** CD-ROM | disk | FTP | other *** search
- /* %filename% -- window methods */
- /* Created %date% %time% by AppMaker */
-
- /* We recommend that you not modify this module and instead modify */
- /* its subclass, %WindName%. The 'z' prefix on this module marks% %*/
- /* a module which is likely to be regenerated by AppMaker after you */
- /* make changes to the user interface. The modules without the 'z' */
- /* prefix will not be regenerated by AppMaker unless you delete them. */
- /* Using a separate subclass to override the AppMaker-generated code */
- /* lets you regenerate code without losing your hand-coded changes. */
-
- #include <Commands.h>
- #include <Constants.h>
- #include <Global.h>
- #include <CDecorator.h>
- #include <CDesktop.h>
- #include <CDirector.h>
- #include <CError.h>
- #include <CSizeBox.h>
- #include <TBUtilities.h>
- #include "%appname%Data.h"
- %for each item gen include%
- #include "z%WindName%.h"
-
- #define %WindName%ID% %%rsrcID% /* resource ID for WIND template */
-
- extern CDecorator *gDecorator; /* Window dressing object */
- extern CDesktop *gDesktop; /* The enclosure for all windows */
- extern CError *gError; /* The error handling object */
-
- /*----------*/
- void Z%WindName%::IZ%WindName% (CDirector *aSupervisor)
- {
- CView *enclosure;
- CBureaucrat *supervisor;
- CSizeBox *aSizeBox;
-
- %if procID = 3200%
- IWindow (%WindName%ID, TRUE, gDesktop, aSupervisor); // floating
- %else%
- IWindow (%WindName%ID, FALSE, gDesktop, aSupervisor);
- %endif%
- itsMainPane = NULL;
-
- enclosure = this;
- supervisor = this;
-
- %for each item gen create%
-
- %if has growBox%
- aSizeBox = new CSizeBox;
- aSizeBox->ISizeBox (enclosure, supervisor);
- %endif%
-
- } /* IZ%WindName% */
-
- %for each item gen zAuxiliaryMethod%
- /*----------*/
- void Z%WindName%::DoCommand (long theCommand)
- {
- switch (theCommand) {
-
- default:
- inherited::DoCommand (theCommand);
- break;
- } /* switch */
-
- } /* DoCommand */
-
- /* %filename% */
-